﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Default.master" AutoEventWireup="true" CodeFile="DangKyLamGiaSu.aspx.cs" Inherits="Dangkygiasu" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
            height: 21px;
        }
        .style3
        {
            height: 22px;
        }
        
        .dangkylamgiasu
        {
            margin:5px 5px;
            width:200px;
            
        }
        .style4
        {
            height: 21px;
            width: 100px;
        }
        
        .style6
        {
            height: 22px;
            width: 100px;
        }
        label
        {
            padding-left: 6px;
        }
        .style8
        {
            height: 33px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <table align="center" class="style1">
        <tr>
            <td colspan="3" class="style2">
                </td>
        </tr>
        <tr>
            <td colspan="3">
                <p class="Tieude_trang">
                    Đăng ký làm gia sư</p>
            </td>
        </tr>
        <tr>
            <td colspan="3">
                <asp:Label ID="lblthongbao" runat="server" ForeColor="Red"></asp:Label>
            </td>
        </tr>
        <tr>
            <td colspan="3">
                &nbsp;</td>
        </tr>
        <tr>
            <td colspan="3" 
                style="background-color: #EFEFEF; font-weight: bold; height: 30px;">
                Thông tin cá nhân</td>
        </tr>
        <tr>
            <td class="style2">
            </td>
            <td class="style4">
                <asp:Label ID="lblhovaten" runat="server" Text="Họ và tên:"></asp:Label>
            </td>
            <td class="style2">
                <asp:TextBox ID="txthovaten" runat="server" CssClass="dangkylamgiasu"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="txthovaten" ErrorMessage="Họ và tên không để trống" 
                    Font-Size="Small" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td class="style5">
                <asp:Label ID="lbldiachi" runat="server" Text="Địa chỉ:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtdiachi" runat="server" CssClass="dangkylamgiasu" 
                    Width="300px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="txtdiachi" ErrorMessage="Địa chỉ không để trống" 
                    Font-Size="Small" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td class="style5">
                <asp:Label ID="lbldienthoaididong" runat="server" Text="Điện thoại di động:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtdienthoaididong" runat="server" CssClass="dangkylamgiasu"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="txtdienthoaididong" 
                    ErrorMessage="Điện thoại di động không để trống" Font-Size="Small" 
                    ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td class="style5">
                <asp:Label ID="lbldienthoaicodinh" runat="server" Text="Điện thoại cố định:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtdienthoaicodinh" runat="server" CssClass="dangkylamgiasu"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style8">
                </td>
            <td class="style8">
                <asp:Label ID="lblemail" runat="server" Text="Email:"></asp:Label>
            </td>
            <td class="style8">
                <asp:TextBox ID="txtemail" runat="server" CssClass="dangkylamgiasu"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                    ControlToValidate="txtemail" ErrorMessage="Email không để trống " 
                    Font-Size="Small" ForeColor="Red"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ControlToValidate="txtemail" ErrorMessage="Không đúng định dạng email" 
                    Font-Size="Small" ForeColor="Red" 
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td class="style5">
                <asp:Label ID="lblnamsinh" runat="server" Text="Năm sinh:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtnamsinh" runat="server" CssClass="dangkylamgiasu" 
                    Width="100px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                    ControlToValidate="txtnamsinh" ErrorMessage="Năm sinh không để trống" 
                    Font-Size="Small" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td class="style5">
                <asp:Label ID="lblgioitinh" runat="server" Text="Giới tinh:"></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="drdgioitinh" runat="server" CssClass="dangkylamgiasu" 
                    Width="100px">
                    <asp:ListItem>Chưa chọn</asp:ListItem>
                    <asp:ListItem>Nam</asp:ListItem>
                    <asp:ListItem>Nữ</asp:ListItem>
                </asp:DropDownList>
                <asp:CompareValidator ID="CompareValidator1" runat="server" 
                    ControlToValidate="drdgioitinh" ErrorMessage="Chưa chọn giới tính" 
                    Font-Size="Small" ForeColor="Red" Operator="NotEqual" 
                    ValueToCompare="Chưa chọn"></asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td class="style5">
                <asp:Label ID="lblkhuvuc" runat="server" Text="Khu vực:"></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="drdkhuvuctinh" runat="server" CssClass="dangkylamgiasu" 
                    Width="100px">
                    <asp:ListItem>Hà nội</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="style3">
                </td>
            <td class="style6">
                <asp:Label ID="lblanhdaidien" runat="server" Text="Ảnh đại diện:"></asp:Label>
            </td>
            <td class="style3">
                <asp:FileUpload ID="fileuploadanhdaidien" runat="server" 
                    CssClass="dangkylamgiasu" />
            </td>
        </tr>
        <tr>
            <td colspan="3" 
                style="background-color: #EFEFEF; font-weight: bold; height: 30px;">
                Thông tin gia sư</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td class="style5">
                <asp:Label ID="lbltrinhdo" runat="server" Text="Trình độ:"></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="drdtrinhdo" runat="server" CssClass="dangkylamgiasu" 
                    Width="100px">
                    <asp:ListItem>Sinh viên</asp:ListItem>
                    <asp:ListItem>Giáo viên</asp:ListItem>
                    <asp:ListItem>Khác</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td class="style5">
                <asp:Label ID="lblnoicongtac" runat="server" Text="Nơi công tác:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtnoicongtac" runat="server" CssClass="dangkylamgiasu" 
                    Width="300px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                    ControlToValidate="txtnoicongtac" ErrorMessage="Nơi công tác không để trống" 
                    Font-Size="Small" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td class="style5">
                <asp:Label ID="lblnganhhoc" runat="server" Text="Ngành học:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtnganhhoc" runat="server" CssClass="dangkylamgiasu" 
                    Width="300px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                    ControlToValidate="txtnganhhoc" ErrorMessage="Ngành học không để trống" 
                    Font-Size="Small" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td class="style5">
                <asp:Label ID="lblkinhnghiem" runat="server" Text="Số năm kinh nghiệm:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtkinhnghiem" runat="server" CssClass="dangkylamgiasu" 
                    Width="100px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                    ControlToValidate="txtkinhnghiem" 
                    ErrorMessage="Số năm kinh nghiệm không để trống" Font-Size="Small" 
                    ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td class="style5">
                <asp:Label ID="lblmondaytot" runat="server" Text="Môn dạy tốt:"></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="drdmondaytot" runat="server" CssClass="dangkylamgiasu" 
                    Width="100px" DataSourceID="SqlDataSourcemondaytot" DataTextField="tenmon" 
                    DataValueField="tenmon">
                </asp:DropDownList>
                <asp:SqlDataSource ID="SqlDataSourcemondaytot" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:GSPhuongThaoConnectionString %>" 
                    SelectCommand="SELECT * FROM [MonHoc]"></asp:SqlDataSource>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td class="style5" width="150px">
                <asp:Label ID="lblcotheday" runat="server" Text="Có thể dạy lớp:"></asp:Label>
            </td>
            <td>
                <asp:CheckBoxList ID="chbcothedaylop" runat="server" CssClass="dangkylamgiasu" 
                    CellSpacing="5" RepeatColumns="2" Width="300px" 
                    DataSourceID="SqlDataSourcelopcotheday" 
                    DataTextField="tenlop" DataValueField="tenlop" >
                </asp:CheckBoxList>
                
                <asp:Label ID="lblthongbaolopcotheday" runat="server"></asp:Label>
                
                <asp:SqlDataSource ID="SqlDataSourcelopcotheday" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:GSPhuongThaoConnectionString %>" 
                    SelectCommand="SELECT * FROM [Lop]"></asp:SqlDataSource>
                
            </td>
        </tr>
        <tr>
            <td width="70">
                &nbsp;</td>
            <td class="style5">
                <asp:Label ID="lblmonday" runat="server" Text="Môn dạy:"></asp:Label>
            </td>
            <td>
                <asp:Label ID="lblthongbaomonday" runat="server"></asp:Label>
                <asp:CheckBoxList ID="chbmonday" runat="server" CssClass="dangkylamgiasu" 
                    CellSpacing="5" RepeatColumns="3" Width="600px" 
                    DataSourceID="SqlDataSourcemondaytot" DataTextField="tenmon" 
                    DataValueField="tenmon">
                </asp:CheckBoxList>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td class="style5">
                <asp:Label ID="lblthongtinkhac" runat="server" Text="Thông tin khác:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtthongtinkhac" runat="server" Height="70px" TextMode="MultiLine" 
                    Width="500px" CssClass="dangkylamgiasu"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style2">
                </td>
            <td class="style4">
                </td>
            <td class="style2">
                </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td class="style5">
                &nbsp;</td>
            <td>
                <asp:Button ID="btndangky" runat="server" Height="30px" Text="Đăng ký" 
                    Width="70px" CssClass="dangkylamgiasu" onclick="btndangky_Click" />
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td class="style5">
                &nbsp;</td>
            <td>
                <asp:ValidationSummary ID="ValidationSummary1" runat="server" Font-Size="Small" 
                    ForeColor="Red" />
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td class="style5">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td class="style5">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>

</asp:Content>

